import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {OuOrg} from '../entity/ou-org';

@Component({
    selector: 'ou-dept-tabset',
    templateUrl: './ou-dept-tabset.component.html',
    styleUrls: ['./ou-dept-tabset.component.less']
})
export class OuDeptTabsetComponent implements OnInit {

    tabIndex = 0;

    @Output() dataChange = new EventEmitter<string>();

    @Output() itemClickEvent = new EventEmitter<any>();

    constructor() {
    }

    _orgId: string;

    get orgId() {
        return this._orgId;
    }

    @Input()
    set orgId(_orgId: string) {
        this._orgId = _orgId;
    }

    ngOnInit() {
    }

    doDataChange(type) {
        this.dataChange.emit(type);
    }

    itemClick(key) {
        this.itemClickEvent.emit(key);
    }

}
